/**
 * Copyright (c) 2018 苍穹跃龙
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.l.core.web;

/**
 * @author 严秋旺
 * @date 2018-09-23
 */
public enum RestCode {
	SUCCESS(0, "操作成功"),
	FAILED(1, "操作失败"),

    FORM_BAD(1000, "参数错误"),
    LOGIN_USERNAME_OR_PASSWORD_ERROR(1000, "用户名或密码错误"),
    LOGIN_USER_LOCKED(1001, "用户锁定");

    private Integer code;
    private String message;

    RestCode(Integer code, String messsage) {
        this.code = code;
        this.message = messsage;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
